﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.webcaseshow" ValidateRequest="false" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2013/6/26 17:12:39.
		本页面代码由ihongma模板引擎生成于 2013/6/26 17:12:39. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	const int channel_id = 11;

	templateBuilder.Append("<!DOCTYPE HTML>\r\n<html lang=\"zh-cn\">\r\n<head>\r\n<meta charset=\"utf-8\" />\r\n<title>");
	templateBuilder.Append(model.name);
	templateBuilder.Append("|鸿马</title>\r\n<meta name=\"description\" content=\"");
	templateBuilder.Append(Utils.DropHTML(model.describe,180));

	templateBuilder.Append("\" />\r\n<meta name=\"keywords\" content=\"");
	templateBuilder.Append(model.name);
	templateBuilder.Append("，网站设计， 网站建设，网站，高端建站\" />\r\n<meta content=\"Copyright 2012 ihongma.com\" name=\"copyright\" />\r\n<link rel=\"shortcut icon\" href=\"/favicon.ico\" />\r\n<link rel=\"stylesheet\" href=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/css/global.css\" type=\"text/css\" media=\"screen\" />\r\n<script type=text/javascript src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/jquery-1.7.1.min.js\"></");
	templateBuilder.Append("script>\r\n<!--[if lt IE 9]><script src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/html5.js\"></");
	templateBuilder.Append("script><![endif]-->\r\n</head>\r\n<body>\r\n\r\n ");

	templateBuilder.Append("<div class=\"t_container\">\r\n  <div class=\"t_topin\">\r\n    <h1><a href=\"/index.aspx\" title=\"鸿马网\">鸿马网</a></h1>    \r\n    <script type=\"text/javascript\">\r\n        $(document).ready(function () {\r\n            $(\".dropdown img.flag\").addClass(\"flagvisibility\");\r\n\r\n            $(\".dropdown dt a\").click(function () {\r\n                $(\".dropdown dd ul\").toggle();\r\n            });\r\n\r\n            $(\".dropdown dd ul li a\").click(function () {\r\n                var text = $(this).html();\r\n                $(\".dropdown dt a span\").html(text);\r\n                $(\".dropdown dd ul\").hide();\r\n                $(\"#result\").html(getSelectedValue(\"sample\"));\r\n            });\r\n\r\n            function getSelectedValue(id) {\r\n                return $(\"#\" + id).find(\"dt a span.value\").html();\r\n            }\r\n\r\n            $(document).bind('click', function (e) {\r\n                var $clicked = $(e.target);\r\n                if (!$clicked.parents().hasClass(\"dropdown\"))\r\n                    $(\".dropdown dd ul\").hide();\r\n            });\r\n\r\n\r\n            $(\"#flagSwitcher\").click(function () {\r\n                $(\".dropdown img.flag\").toggleClass(\"flagvisibility\");\r\n            });\r\n        });\r\nfunction submitTest() {\r\n            if ($(\"#d_search\").val() == \"\")\r\n            { return false; }\r\n            else {\r\n                return true;\r\n            }\r\n        }\r\n    </");
	templateBuilder.Append("script>\r\n    <div class=\"t_search_wrapper\">\r\n      <div class=\"t_search_bg\">\r\n        <div class=\"t_search\">\r\n        <form method=\"get\"  action=\"/search.aspx\"   onsubmit='return submitTest()'>\r\n          <div class=\"t_search_left\">\r\n            <div class=\"t_search_container\"><input id=\"d_search\" class=\"d_search_input\" name=\"keyword\" type=\"text\" /><input id=\"result\" name=\"type\" value=\"0\" type=\"hidden\" /></div>\r\n            <dl id=\"sample\" class=\"dropdown\">\r\n              <dt><a href=\"#\"><span>全站资源</span></a></dt>\r\n              <dd>\r\n                <ul> \r\n                <li><a href=\"#\">全站资源<span class=\"value\">0</span></a></li>\r\n                <li><a href=\"#\">网站设计<span class=\"value\">11</span></a></li>\r\n                <li><a href=\"#\">图片库<span class=\"value\">10</span></a></li>\r\n                <li><a href=\"#\">JS特效<span class=\"value\">13</span></a></li>\r\n                  <li><a href=\"#\">有趣的事<span class=\"value\">1</span></a></li>\r\n                </ul>\r\n              </dd>\r\n            </dl>\r\n          </div>\r\n          <div class=\"t_search_right\"><input class=\"t_button\" value=\"\" type=\"submit\" /></div>\r\n          </form>\r\n        </div>\r\n      </div>\r\n    </div>\r\n    <div class=\"tmlogin\">\r\n      <ul>\r\n      <li class=\"tcontact\"><a rel=\"nofollow\"  id=\"a15\" href=\"");
	templateBuilder.Append(linkurl("contact_sub",""));

	templateBuilder.Append("\">联系我们</a></li>\r\n      <li class=\"tlogin\"><a rel=\"nofollow\" href=\"#\">登录</a></li>\r\n      </ul>\r\n    </div>\r\n  </div>\r\n</div>\r\n\r\n<header>\r\n  <div class=\"i_menu\">\r\n    <div class=\"menu\">\r\n      <ul>\r\n   <li><a id=\"a0\"  href=\"/\" >鸿马首页</a></li>\r\n      <li><a id=\"a11\" href=\"");
	templateBuilder.Append(linkurl("design_list1",""));

	templateBuilder.Append("\">网站设计</a></li>\r\n       <li><a id=\"a14\" href=\"");
	templateBuilder.Append(linkurl("services",""));

	templateBuilder.Append("\">鸿马服务</a></li>\r\n      <li><a id=\"a13\" href=\"");
	templateBuilder.Append(linkurl("ajax_list1",""));

	templateBuilder.Append("\">JS特效</a></li>\r\n      <li><a id=\"a10\" href=\"");
	templateBuilder.Append(linkurl("photo_list1",""));

	templateBuilder.Append("\">图片库</a></li>\r\n      <li><a id=\"a1\" href=\"");
	templateBuilder.Append(linkurl("article_list1",""));

	templateBuilder.Append("\">有趣的事</a></li>\r\n\r\n\r\n </ul>\r\n    <script type=\"text/javascript\">\r\n        document.getElementById('a");
	templateBuilder.Append(channel_id);
	templateBuilder.Append("').className = 'active';\r\n    </");
	templateBuilder.Append("script>\r\n  \r\n    </div>\r\n    <div class=\"imenu_right\"><a href=\"");
	templateBuilder.Append(linkurl("content","about"));

	templateBuilder.Append("\">关于我们</a><a href=\"http://weibo.com/ihongma\"  target=\"_blank\">微博关注</a></div>\r\n  </div>\r\n</header>");


	templateBuilder.Append("\r\n\r\n<div class=\"inside\">  \r\n  <div class=\"content mtop\" style=\"overflow:hidden;\">\r\n    <div class=\"item_details\">\r\n      \r\n      <script src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/slides.min.jquery.js\"></");
	templateBuilder.Append("script>\r\n      <script>\r\n		$(function(){\r\n			// Set starting slide to 1\r\n			var startSlide = 1;\r\n			// Get slide number if it exists\r\n			if (window.location.hash) {\r\n				startSlide = window.location.hash.replace('#','');\r\n			}\r\n			// Initialize Slides\r\n			$('#slides').slides({\r\n				preload: true,\r\n				preloadImage: '");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/images/loader.gif',\r\n				generatePagination: true,\r\n				play: 5000,\r\n				pause: 2500,\r\n				hoverPause: true,\r\n				// Get the starting slide\r\n				start: startSlide,\r\n				animationComplete: function(current){\r\n					// Set the slide number as a hash\r\n					window.location.hash = '#' + current;\r\n				}\r\n			});\r\n		});\r\n      </");
	templateBuilder.Append("script>\r\n      <div class=\"sliderwinner\">\r\n        <div id=\"example\">\r\n          <div id=\"slides\">\r\n            <div class=\"slides_container\">\r\n             ");
	            System.Collections.Generic.List<ihongma.Model.web_photo> photomodel=model.Photolist;
	     StringBuilder strtag = new StringBuilder();
	         string showtag;
	         System.Web.Script.Serialization.JavaScriptSerializer java = new System.Web.Script.Serialization.JavaScriptSerializer();
		     
	     foreach(ihongma.Model.web_photo  phtom in photomodel)
	     {
	        strtag.Append(GetAlbumHtml(phtom.id.ToString(),java.Serialize(phtom.Taglist)));
	           
	       

	templateBuilder.Append("\r\n              <div class=\"pngfix slide\"><span class=\"img photo-container\"><img alt=\"\"   id=\"photo");
	templateBuilder.Append(phtom.id);
	templateBuilder.Append("\" name=\"photo");
	templateBuilder.Append(phtom.id);
	templateBuilder.Append("\" src=\"");
	templateBuilder.Append(phtom.big_img);
	templateBuilder.Append("\" ></span></div>\r\n            ");
	            
	            }
	             showtag = "{" + strtag.ToString() + "}";
	             if (showtag.EndsWith(",}"))
	             {
	                 showtag = showtag.Remove(showtag.Length - 2, 1);
	             }
	            

	templateBuilder.Append("\r\n           \r\n    <script src=\"../../scripts/phototagger.jquery.js\" type=\"text/javascript\"></");
	templateBuilder.Append("script>\r\n    <script type=\"text/javascript\" src=\"../../scripts/coldfusion.json.js\"></");
	templateBuilder.Append("script>\r\n            <script type=\"text/javascript\">\r\n    var agegaglist ='");
	templateBuilder.Append(showtag);
	templateBuilder.Append("';\r\n\r\n       // alert( eval('('+agegaglist+')')[0]);\r\n           $(function () {\r\n               $(\"span.photo-container\").photoTagger({\r\n            loadURL: agegaglist,\r\n            saveURL: \"./save_Tag.cfm\",\r\n            deleteURL: \"./delete_tag.cfm\",\r\n            cleanAJAXResponse: cleanColdFusionJSONResponse\r\n        });\r\n     \r\n    });\r\n    \r\n    </");
	templateBuilder.Append("script>\r\n            <!--  <div class=\"pngfix slide\"><span class=\"img\"><img alt=\"\" src=\"cs_images/range2.jpg\" width=700 height=390></span></div>\r\n              <div class=\"pngfix slide\"><span class=\"img\"><img alt=\"\" src=\"cs_images/range3.jpg\" width=700 height=390></span></div>-->\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n      \r\n      <div class=\"item_info\">\r\n        <h4>项目点评：</h4>\r\n        <div class=\"item_info_p\">\r\n          <p>");
	templateBuilder.Append(model.dianping);
	templateBuilder.Append("\r\n          </p>\r\n         <!-- <div>\r\n            asdasdasd\r\n          </div>-->\r\n        </div>\r\n      </div>\r\n      \r\n    </div>\r\n    <div class=\"item_col\">\r\n      <h3>");
	templateBuilder.Append(model.name);
	templateBuilder.Append("</h3>\r\n      <div class=\"credits\">\r\n ");
	    string locktexs=model.state==1?"解锁":"已解锁";
	string taglist=model.tags.Contains(",")?model.tags.Split(',')[0]:model.tags;
	       

	templateBuilder.Append("\r\n        <p><span>状态：</span>");
	templateBuilder.Append(locktexs);
	templateBuilder.Append("</p>\r\n        <p><span>网站：</span><a href=\"");
	templateBuilder.Append(model.weburl);
	templateBuilder.Append("\" target=\"_blank\"> ");
	templateBuilder.Append(model.weburl);
	templateBuilder.Append(" </a></p>\r\n      </div>\r\n      <h4>描述：</h4>\r\n      <p class=\"italic\">");
	templateBuilder.Append(model.describe);
	templateBuilder.Append("</p>\r\n      <h4>标签：</h4>\r\n      <p class=\"tags\">\r\n        ");
	DataTable tag_list2 = get_tags_list("id in ("+model.tags+")");
	

	int tagr12__loop__id=0;
	foreach(DataRow tagr12 in tag_list2.Rows)
	{
		tagr12__loop__id++;


	templateBuilder.Append(" <a href=\"");
	templateBuilder.Append(linkurl("design_list2",tagr12["id"].ToString().Trim(),1));

	templateBuilder.Append(" \">" + tagr12["name"].ToString().Trim() + "</a>");
	}	//end loop


	templateBuilder.Append("\r\n       \r\n      </p>\r\n    </div>\r\n    \r\n    <div class=\"item_cate\">\r\n      <h4>相关类别：</h4>\r\n      <script type=text/javascript src=\"");
	templateBuilder.Append(config.templateskin);
	templateBuilder.Append("/js/ihongma_p.js\"></");
	templateBuilder.Append("script>\r\n      <div class=\"item_cate_listsites\">\r\n        <ul class=\"c_listsites\" style=\"width:255px;\">\r\n");
	DataTable article_list5 = get_website_list(11,4, "tags like '%"+taglist+"%' and id<>"+model.id+" ");
	

	int adr5__loop__id=0;
	foreach(DataRow adr5 in article_list5.Rows)
	{
		adr5__loop__id++;


	    string locktex=adr5["state"].ToString()=="1"?"当前锁定状态，可以购买":"当前解锁状态";
	
	
	    string lockclass = adr5["state"].ToString() == "1" ? "lock" : "unlock";
	    

	templateBuilder.Append("\r\n      <li class=\"list_site\">\r\n        <div class=\"website\"><a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\"><img src=\"" + adr5["img"].ToString().Trim() + "\" ></a></div>\r\n        <div class=\"info\"><a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\"><span class=\"");
	templateBuilder.Append(lockclass);
	templateBuilder.Append("\"></span><p>");
	templateBuilder.Append(locktex);
	templateBuilder.Append("</p></a></div>\r\n        <div class=\"name\"><a href=\"");
	templateBuilder.Append(linkurl("design_show",adr5["id"].ToString().Trim()));

	templateBuilder.Append("\">" + adr5["name"].ToString().Trim() + "</a></div>\r\n        <div class=\"state\"><a class=\"");
	templateBuilder.Append(lockclass);
	templateBuilder.Append("\" title=\"");
	templateBuilder.Append(locktex);
	templateBuilder.Append("\">");
	templateBuilder.Append(locktex);
	templateBuilder.Append("</a></div>\r\n        <div class=\"tag\">标签: \r\n        \r\n        ");
	DataTable tag_list = get_tags_list("id in ("+adr5["tags"].ToString().Trim()+")");
	

	int tagr1__loop__id=0;
	foreach(DataRow tagr1 in tag_list.Rows)
	{
		tagr1__loop__id++;


	templateBuilder.Append(" <a href=\"");
	templateBuilder.Append(linkurl("design_list2",tagr1["id"].ToString().Trim(),1));

	templateBuilder.Append("\">" + tagr1["name"].ToString().Trim() + "</a>\r\n        \r\n        ");
	}	//end loop


	templateBuilder.Append("</div>\r\n      </li>\r\n      ");
	}	//end loop


	templateBuilder.Append("\r\n    </ul>\r\n\r\n\r\n\r\n\r\n     \r\n       \r\n        </ul>\r\n      </div>\r\n    </div>\r\n    \r\n  </div>\r\n</div>\r\n\r\n");

	templateBuilder.Append("<footer>\r\n  <div class=\"footercenter\">\r\n    <div class=\"usfrid\">\r\n      <h4>访问我们的好友</h4>\r\n      <ul><a href=\"http://www.microsoft.com/\" target=\"_blank\" class=\"fr_1\">微软</a><a href=\"http://feixin.10086.cn/\" target=\"_blank\" class=\"fr_2\">飞信</a><a href=\"http://www.bjhqlc.com/\" target=\"_blank\" class=\"fr_3\">华强联创</a><a href=\"http://www.canyin.com/\" target=\"_blank\" class=\"fr_4\">中国餐饮网</a><a href=\"http://www.baidu.com/\" target=\"_blank\" class=\"fr_6\">百度</a><a href=\"http://www.csdn.net/\" target=\"_blank\" class=\"fr_5\">csdn</a></ul>\r\n    </div>\r\n    <div class=\"custom_footer\">\r\n      <ul><a href=\"http://www.ihongma.com/services.aspx\">鸿马服务</a><a href=\"http://www.ihongma.com/contact_sub.aspx\">联系我们</a><a href=\"http://www.ihongma.com/content/about.aspx\">关于我们</a></ul>\r\n      <p><a href=\"http://www.ihongma.com/contact_sub.aspx#comment_form\">提交订制信息</a></p>\r\n    </div>\r\n  </div>\r\n  <div class=\"f_copyright\">Copyright &copy; 2013, Ihongma Inc., CN. All Rights Reserved.京ICP备12052092号<a href=\"/sitemap.xml\">sitemap</a>\r\n  <script type=\"text/javascript\">\r\n                                                                                            var _bdhmProtocol = ((\"https:\" == document.location.protocol) ? \" https://\" : \" http://\");\r\n                                                                                            document.write(unescape(\"%3Cscript src='\" + _bdhmProtocol + \"hm.baidu.com/h.js%3F9ac1b1deb9e42bde31e827b7416d12bd' type='text/javascript'%3E%3C/script%3E\"));\r\n</");
	templateBuilder.Append("script>\r\n</div>\r\n</footer>");


	templateBuilder.Append("\r\n\r\n</body>\r\n</html>");
	Response.Write(templateBuilder.ToString());
}
</script>
